<template>
    <div>
        {{$store.getters.getCount}}
        <div><button @click="increase">+</button></div>
    </div>
</template>

<script>
export default {
    methods:{
        increase(){
            this.$store.commit('increatment');
            console.log(this.$store.getters.getCount);
        }
    }
}
</script>

<style scoped>

</style>